Added logging option for commands