Added code for commitment