Use tee to redirect output instead