Initialize and update qs primary variable.