Added V4 and write steps of the analysis