Implemented simple command compression