Try to coment out some functions and see where the lag is comming from.
If you need help send me a pm, I could add you in skype or come look over teamviewer laugh