Added sleep for android GUI version