Changes for merging CGI Code. bug fix for received data on pending contracts