Adding the commit before sleep