Added assign to null prior to capture statements.