Added function for looping across groups in eptFiles