Adding flushCommands