Implements some APIs.