Entire Q5 code, latest server code with impl for Q4 and Q6