Miscellaneous data processing scripts