Updating ruby script