Added attr_protected to resolve issue #84.