Generating functions for reources