Merge "Combining ref_frame and second_ref_frame into ref_frames[2]."