record function

Capture all Output