Updated loops to download and apply up to latest patch