What's the use case of this function and how is it related to Grant?