Adding base for distance