Added timing for script execution.