Can we combine this loop and the previous one (sha1), i.e first construct the members list and then have the same logic.