Updated script for submission