Add variables to links