Preparing the contracts