Added entry point fix by making a main()