Finished script to run binner.