Changed constructor for settime