Added some lines to improve AHK script performance