Small changes in handling log values.