Update main.pl

Did this anyway locally, not sure if you want to merge it