This has code so that aia files are stored and opened and downloads counted