Functional framework.