Add resource collection logic