              SOAP::Data->name( 'm_adresse2'  => $patron->b_address2  )->type( 'string' ),
              SOAP::Data->name( 'm_postnr'    => $patron->b_zipcode   )->type( 'string' ),
 diff --git a/members/nl-search.pl b/members/nl-search.pl
-index 29ec13e..516f277 100755
+index 29ec13e..0fa3ac2 100755
 --- a/members/nl-search.pl
 +++ b/members/nl-search.pl
-@@ -42,7 +42,7 @@ use C4::Output;
+@@ -40,9 +40,10 @@ use C4::Auth;
+ use C4::Context;
+ use C4::Output;
  use C4::Members;
++use C4::Members::Messaging;
  use C4::Members::Attributes qw( SetBorrowerAttributes );
  use C4::Utils::DataTables::Members;
 -use Koha::NorwegianPatronDB qw( NLCheckSysprefs NLSearch NLDecodePin NLGetFirstname NLGetSurname NLSync );

         'dateofbirth'  => scalar $cgi->param('fdato'),
         'cardnumber'   => scalar $cgi->param('lnr'),
         'userid'       => scalar $cgi->param('lnr'),
@@ -118,13 +118,12 @@ if ( $op && $op eq 'search' ) {
         'address2'     => scalar $cgi->param('p_adresse2'),
         'zipcode'      => scalar $cgi->param('p_postnr'),
         'city'         => scalar $cgi->param('p_sted'),

 )] );
 Exporter::export_ok_tags('all');

@@ -257,10 +258,62 @@ sub NLSync {
             # Turn off any further syncing
             $sync->update( { 'sync' => 0 } );
         }
