final version for Glasgow applications.