Add delay to main