New way to define formularies with functions.