Update license function