Updated the collection utility methods to work with Collections, rather than just Lists.