Implementing striding into main program.