Change the undoTimeLimit to be specified in seconds, not milliseconds