Added function 4.