Rules for commit