nicely done :) i was planning on writing something similar to this for my bot but you just saved me the bother :P with just a few little tweaks