Better license handling. Set insertion handling.
Better debug messages for set insert.