Added pause duration, prevent multiple concurrent scripts from running.