All static variables added at the top

First step in making the code more readable.