Add selecting of variables to join