Refactored action.