Adding handles for error message