Added sleep for apple