Add sleep calls to main loops