Commiting before sleeping