Make new variable for more semantic code blocks

Also to reduce confusion with reassigning a value multiple times.