Removed som code that is meant for a scripted run only. TODO for later would be to actually incorporate that code into a script.