Fix resource. Refactor.