Added global var to control logging sync commands.