Updated custom grants sample