Add versioning support and ptpm