Error logging is added