Automatically load resources