Refactored to avoid warning.