Refactored resource option.