Added setFrameLimit