Added error tolerance.