added backward sweep and result display.