UPDATE: Refactoring of resource reading.