Added some sleep in the infinit loop stage