Done for `h` and `g`.