Now works with changing logfiles