Waiting for someone to reply with an overly complicated rewrite including flood protection
Yes using aliases may not have been the greatest way to go about a snippet such as this, but that's for you to decide.
Long as it works. All the best.