Updated with modified code for GetTor