Fixed distance implementation