Updated build.xml and fetch.xml. Fixed distance field bugs.