Updated version, adding more config options.