Replaced vertical/horizontal stride with stride only and fixed errors