Added output for error handling