Updated with modified code for GetTor
Added GetTor implementtion