Writing the DBQ and the LEQ