Initial (slow) version of P14
A bit more optimized P14