Removed unnecessary old code, and added simple command scheme.