ok, thanks for all the replies... i will try the solutions as you gave them to me, and i hope i can make it work in a nice way. oh, and by the way, my event can happen every 3 seconds. im checking if a bit on a port if high or low, and that can change every 3 seconds. Yuri