Setting time properly.