A simple command dispatcher