Perfecting the script