Keep track of the required gems.