Should have a comment explaining the logic.