Add commits with function