Setting up Rangefinder