Originally Posted by MaNaReaver
I wanted to make it a simple plugin with less lines of code and this was the best I could do.
FYI, the goal of having fewer lines of code is never a goal of any good
programmer. Never have that as a goal because it often prevents you from writing code that is actually good.