Adding "logger" variable which is needed for some error handling