Altered script layout to be more readable