Changes to improve digit recognition