Changed name of main function to avoid confusion