Adding config options and parsing to the script