Added ability to reverse order