Added PM_DIRECTION; made constant names more intuitive.