VE-717 Only initialize vars if they are going to be used