Change sleep time to 500ms