Changed subtask record function API to accomodate __global label.