Added sleep to give text a chance to update