Added addition error logging