Add -main fn