Added autocorrecting code