New function for branch 2.