Add attribute for resource state. Use the #get helper instead of manually iterating collection.
Add base event population