Made try/catch block