Made pm.c easier to read