Changed all >> to tee arguments