I did a better job on the script to remove unused event numbers, it now should be pretty robust. As such, doEvent is now updated.