Use config.getboolean() instead of casting to bool