Capture variables.