Finished implementing the calculating time limiter.