Fixed problems in error tolerance and optimized.