Changed FrameFactory API so that it will take effect