Only force a stateful interface for top level functions.