Added filename incrementation using the config file. This isn't ideal. Will change it.