Update contract