https://github.com/Clever/batchtail/commit/ba78483a0a7903abe063ac9aacf97f2f5bb56293