Added an addTime function