Finished basic licensing logic.