Simplified main().