Added distance functionality for in browser