Added a bunch of macros in pmm.c for clarity