Used try...catch construct.