More log pruning
Updated version