Add easy way to register and handle commands.