Indexing into a a list with another list is a powerful technique for making scripts fast and small. See Indexing into a Matrix or List with Another Matrix or List.