Bug fixing
Generate config if one doesn't already exist