These top-level functions have to go.