Modified the attribute model service.