Added global to catch method call once