Changed elapsed time to be variable.