The effect of resting is sleep