Added pruning steps - temporary until wrapper script is finished.