Added EOF for buffer.Read