Initial function and test.