These are a lot of variables added here, what exactly is their purpose? Anyway to utilize existing variables and create some logic from those?