added batching and new parameters in FrameSet