Moved declaration of max downloadable area on top of script