Working after changing variables