Added check in Contract.