Implementing a command queue (and logging-preference)