Finished base finding script.
Cleaning output.