Preliminary version that flatly removes all non-test output