Added a commit_by_author function