Because bad practices from when I was in a rush to code this at the last minute. This will be fixed at some point. Can do it for this pull request if you want, otherwise later.