Simplified main()