Adding function 4, 5, 6