Added better logging of user messages and commands.