Added add_time method