New function in branch 1.