Manage a stack of functions and execute them with flow control.