I don’t like reassigning instance variables like this. Also see the note below; once this bunch of code is extracted into its own method/function, this will become a lot cleaner.