Replaced the state function for resources with a sequence.