Replace sleep with polling for user name to be correct.