Reordered sections for clarity