Moved error handling inside the catch.....