Moved big try catch block