Defined various methods for enumerables.