Optimize code, detect Windows is 32 or 64 bit platform to download correct version.