Converted https://github.com/timvideos/planet/commit/52be89e829d7bc6ccf85909461cdae0493e8a27e