Part one of license checking