Separated out processing and gathering into separate scripts.