Add getIndex function
Add bittorrent instance for transformers
Inline getClient function