Uses multiple connections but doesn't push last batch (need to fix this)