Added namespace for calls to advance and distance (4.8 gives errors unlike 4.7)