LQP core code