Added support of multiple group names
fixed function name