Cleaning up php scripts to hopefully improve performance
Fixed a mistake I made when rewriting the SCC NM Events script