Use object lookup rather than array lookup for modules