Add contract
Some changes.