Parse variables and labels