Yeah sleeping like that is a bad code smell... there are better ways.