"Error loging" block added