Added more try catch.