Working prototype. Cmd-line driven.