I apologize but I have to pick your brain once again. It seems that when the wifi off profile turns itself off at the end of the task for some reason turns the wifi back on. Any ideas why this might be happening? It seems to turn off the wifi off for a short period and makes the red circle on the profile but it still seems to make the wifi turn back on. I have removed the profile off task and this seems to fix the problem.