Add capture output extension
Add func to capture input (synchronous)