Improved script for running.