Add path in commit method