Better sequencing of commands in the log