Adjusted the try block.