Added library and tests.