use Subfunctions, not require.
default frac should be 1.