Iterate over byte array instead of slice; use { } for single line if/for blocks