The code works, given a channel is relatively small, this is practically true across any given network. Secondly, it's hard to give a possible solution when the poster doesn't say what exactly he's trying to do. There's more than likely a better, faster way to go about doing it.