Function merging