I've edited a couple of typos in the previous post, but the .xml.txt file should be ok.
as visual test I've set up a notification for each step in the cycle.
there are 3 interfaces involved, Galaxy S uses eth0 for wifi and svnet0 and/or pdp0 for mobile data, I do not know which one is correct so I use both of them.
let me know if this is useful.
it looks like I made a few changes to the tasks, but I'm sure you'll figure out how to deal with the threshold and name changes.