Have you thought of indenting your constructs? Would make it much easier to follow.
I would suggest you not use vars in strings.

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.