Resource layout and reorganization