Added Try Catch statement