Add a few function defs