Added ErrorHandling code