Prior term

Non optimised prior added. Demo also changed.