Modify function invocations to include our global struct.