Moved configuration variables to top of file

Is this what you were thinking?