Added setting to control frames per packet.