Added simple command parser. Untested.