Call function properly