Makes sure correct distance is sent