Modified upgrade script so it'll actually calculate the compression rate properly