This brilliant piece of code was written by matzi11a you can check his website out at FPL NTI APP