Added a main to test.