I made a fixed version of my original project. Now there are no longer a useless variable. I'm probably going to use this for Christmas updates in some of my games.