(2)If the owner of the building, or other person, upon whom a notice has been served under sub-section (1), appears in pursuance thereof before the Municipal Commissioner or the Executive Officer and gives an undertaking that he shall, within a period specified by the Municipal Commissioner or the Executive Officer, execute such works of improvement in relation to the building as will, in the opinion of the Municipal Commissioner or the Executive Officer, render the building fit for human habitation or that the building shall not be used for human habitation until the Municipal Commissioner or the Executive Officer on being satisfied that it has been rendered fit for such habitation, the Municipal Commissioner or the Executive Officer shall not make an order of demolition of the building.