Added try catch.