Add the build distance in the class attributes
Merge remote-tracking branch 'kangz/master' into configfiles