Add demandHash(), demandFunction(). Needs tests.