Add code rate for commit. Needs optimizations.