[IPTorrents] Simplified code a bit