Added methods to access arbitrary elements in a collection.