Working version of Bulk API crawling script