Allows removal of multiple mods

Closes #378

(cherry picked from commit 04c74f1b856388f4b0b2e25ea36cd7ddfbcff572)