Revised the project_contract condition.