Renamed the parameters of the afterDelay() helper functions to be more consistent.