Made some variables available globally in the class instead of having to pass them by reference which was lame