Refactor CPM v1.2.1 implementation to be compatible with the new v2.2.1: Propose generation and parsing of specified version to the end user.