Adoped NSSecureCoding where possible.