Added catch statement.