TOLERANCE would be namespaced and easier to debug with if it was a
static const rather than a macro