New method to get IDs of all sub-processes