Changes to interfaces for maxDistance
changed time in ui