Refactored monotorrent