Have function defs update context