This would be better with a comment; it's tricky code.