Problem with sessions and threading.