Changed code in Periodic Tasks.vi.