Added a try statement