Implement command parser