Added catch for error.