First working version of group manager