Added API for TOR connections