Good catch to ask about the code &emdash; if you can't actually explain the code you wrote, why do you expect me to explain to you?

;-)