Add auto publishing command. Add clear window command.