Changed the way the pm list is queried