It uses the movement sensor in the iphone to monitor how you're sleeping, you give it a latest time to wake up, and any time in the half hour beforehand it can wake you up whenever you're closest to being awake. It works really well. Never wake up feeling all "uuuuugh"
Fish finger sandwich for dinner. Shame I forgot to buy the cheese slices.