Support upgrade levels

Change-Id: I9dafd97047e14746eca81eac5f071c04905ebf15