`$all_frames` should be `$allFrames`