Renamed main function.