The function 'changeRefGroup' was re-written.