A COMPLETE REWRITE - the code was utterly bad, nonfunctional and useless...

I shall start with something different :)