Fix initial delay in publishing commands. Add a few comments.