Added support for groups in WEP API