Add main try catch