Too bad this is public API; it's not particularly useful as an independent function anymore.