Make the frame limiting conditional