Refactored frame operations into FramesManager