Added logging to dealing