Added license function back