Added sleep and clear