Added compatibility for protected_attributes