Use range for channel handling. It's smaller, idiomatic and more readable.