Some explanatory comments for some weird code.