Do not pass pointers to OnFile