Add dual direction capability
Use samplemanager GetNumMaxSteps