Sleep scheduling and phase advancing