What's the reasoning behind this bit of code?