Add logging to merge and report code