Much like the little 'robot vacuums' available for home use, this little guy gets programmed during his first run. You set his perimeter according to the manual, and he'll never make a dip close enough to the sandbed to carry anything away. I'm not saying its foolproof, but it's reliable.