Enabled compiler optimization, reformatted script