Added -log flag