Updated timer to allow user to pass in a string that represents the time delay.