Work in progress on re-implementation of reverse ordering