Extract intermediate variable