Possibly change filter medm to be 0 based.
Possibly change medm for filter modules to number the filters starting at 0. This would match software, foton, filterfiles, and lots of scripts. The change would alleviate some mental work and possibly prevent future bugs.
Dave points out that scripts decoding switch status are 1 based and would have to be changed.