Moved the generateQuery call into the initializeShadow method.