Fixed Calculation of priority

Fixed calculation of priority.  I had it the opposite of what it should
be.
Added support for v10 devices

Added support for v10 devices (like Lisa's Motorola Photon!)