Added boolean log flag