You can probably keep a lot of these functions you made, as long as the issue of translating booleans and ints from the config file are not present :)