Added methods getGroup(), addGroup() and setGroup() to make the basic API more convenient