Contract and API stub.