capture_output function

Capture Output and Messages