Initial (not currently working) version.

Compiles without warning but exits immediately on running.