Extracted methods for readability.