Second part of the PM API implementation.