Added reverse option for enumerables