A nicer API for commands.