Simplified main() function.
0.2.2dev5