Thanks to followfinder for the original! I modified it to allow multiple speed, slope detection and smoother collision.