Used try-catch statement