Adding sleeping and working to random