If the MasterStats or SlaveStats line is not in the config file, the defualt is false. So I use the ruby shortcut of "if @variable" to generate the line with "Master/SlaveStats true" only if @variable is true.

Try it out, if you want to see everything in action... :boom: