Added a check for correct values of prepare and commit args
Version up to 2.0.9