Fixed bug with toggle display calculation.

Added examples for tolerance.