Modification of function2 behavior