Changed to IList to allow indexer access

Allows us to use a for loop instead of foreach