Adding constructor to controller that allows passing the module.