Adding consumer APIs. Work in progress.