Finishing touches to script