Add function to make list of variables local