Welcome first. Second, what are you trying to accomplish? I see an infinite loop with a 33 hour delay built in. Is 0 low or high for autologinpolicy? An aside, not sure why you need the gosub line.