Implemented group retrieval.
It's more flexible than require group ...

Signed-off-by: abbr <wenfred@gmail.com>