Capture now a ref rather than mutable val.