Whoops this should be done in the try block.