Added sleep in update loop