More transparent handling of frame indices.