Combine and update variables