It'd be so much easier to just change the type of `modules` to a `List<String>` rather than converting back and forth between lists and arrays.