Moved configuration variables to top of file