Added ability to set time