Fix bugs. Add posibility to learn from more than one group and collect stats from this type of learning.