Fully working version of data processing scripts.