Command line stuff sort of working.