Try-except added