adding new code to grab by batch instead of last 24 hours