Added CUT-GET-PART helper function