Added support of withGroups for include.