added wait_time to update_usernames, reordered imports, refs #53