Multiple instances of components now work properly. Still need to
implement group-by.