Probably could have made one giant obnoxious hash array

Considering it all functions the same, this could most likely be
reduced to a single looped function to make all of them with two arrays
of resources and an array of preference keys all wrapped in a single
hash array.