Sowmya - Modified function in agreement.php.