Permit the set time function to be overwridden.
Added time-dependent rotation.