Changed main() definition to avoid an extra prototype being put