Add logging for commands