A simple command handler