Adapted API.