Allow params for commit and optimize