Edits to Adam's Solution:
Time elapsed in milliseconds added
print nodes for each group added