Update some variables