Is this function copied from somewhere? If so, can it be used statically from wherever it was?