Added keep at most X log entries option