"logger" variable is needed for some error handling