Changed tee --append to tee -a