Add log flag to BasicPipeline.pl