Added test function.