key_commit: Added the ability to choose type M and P for adding ommitted items