Modify object name used in function call