Modified license callback function