Added code for the contracts management