Update variable references