Working on #71, but broke everything for inputs such as 2 and backslash-G.
Resolves #71.
Merge pull request #89 from MatthewJA/71-wip

Resolves #71.