Use boolean for determining whether modules need encoding.