Implements delay, determines length