Formatting & fixed broken script