Could you please add an inline comment to explain this? I am not sure I can grasp what it's supposed to do.