A try catch added