Works except for tolerance condition