Work towards API-ifying library.