Moved try catch.