Use tee instead of echo