Call function correctly