Update use of keymanager API.