Changed PMAPI to singleton class