History variable.
Added manual tests for 3.x
New regexes.