Clean up unused code
Implement loadResourceData