Function 3 added.