Add explanatory comment for some weird code