First functioning parts of the API.