Refactor MOD11 into a method