Allow modification of function creation