Improved member directory loop

I have literally no idea what I was thinking before.