Changed duration to use absolute time (milliseconds)