Still having issues with distances not being updated