Adding support for flip and reverse