Smart licence