Move important debug statements to systemd logging
Initialize pendingRequests variable, fixing requests handling