Rearrage order of variables