Added a timer class.