Improved chance of logging command working