ShaderFactory check added.