Refactored s2_batch to use chained promises, rather than nested
promises