One of the last things you do before bed is check your phone.
We're all guilty.
But staring at that bright smartphone in a dark room can not only hurt your eyes, it can affect your sleep.
Now Apple has a new setting it says may help you snooze better.
Many things can interrupt your sleep like a pesky roommate or a finicky fire alarm.
But studies show one thing that can make you toss and turn is your cell phone.
Exposure to a smart phone's blue glow in the dark can affect your circadian rhythm.
To help you snooze through the night, Apple is adding a new mode to the iPhone.
It's called "night shift" and it will be in the next iOS update.
Essentially, night shift changes the screen from a blue light to a warmer setting that's easier on the eyes.
It also figures out your location and turns on automatically at night.
While it doesn't guarantee a good night's sleep, Apple says when it comes to your phone, it can at least help.
Apple released the upgrade to developers to test out.
But the company has not announced when it will be available for your iPhone and iPad.