Initial testing. Works for x < 1000.
Merge branch 'p145'