Added func to mark commitment as in prog or close