Made security copy of main.pl on old_main.pl before removing all unnecesary code