Improved run script.