Add prototype and unit test.