Edit to manager to handle multiple groups