Board Thread:Code Review/@comment-6475116-20150718222706/@comment-23880286-20150719163005

Also why not make the thing into a function that you call twice? Because it's basically the same thing done twice with only a few changes. That would prevent a lot of repetition as well.