Use array instead of string for buffer