Add frame_dupe environment callback.