Implement sweep and length