Cleaning up callback API.