Changes on error logging