Added the option to limit drawn log rows