Pass 1 for fLQ

Implementation is complete, the rest is debugging