Better handling of empty logs.