Common code for entire study group 1