Hi Oz,

Please put CODING into the [ CODE ] tags of UBB to preserve the formatting.

Not sure why, but you could place some debugging output into the code and modify the time for testing to see what is happening.