Updating TP to work with STDIN instead of Files