Made the case specific of the type attribute.