Add a ruby script for batch processing