Unified capturing mechanism. Closes #10.