Separate out the data structure used for tracking
resources into a separate module.