LICENSE: some code U. Glasgow