Made some options configurable in the cfg file. Still a lot more to go...