Use group functions for retrieving group info.  Thanks @ingopingo for reporting!  Fixes #1