Added comment to error handling