Tips to function well after a bad night’s sleep