A theory of how to do it.