Preliminary code for Q1 and Q2