Can now handle other stride lengths. Tested for 1-3.