Changed default main() function