Changed how arguments are passed to modifyDynamicTooltip()