Added time shifting to script