Made logcleaner more flexible