Generic collection print function added