Implement the capture plumbing