Added initial implementation for capture.