Adding tor support