added the ability to keep track of time