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