Made a backwards-compatible break with the old API and deprecated it.