Added addTime method.