Added conditional for adding type 'encrypted_string'