Changed to a runtime-configurable API.