Adding timer class.