Fixed buffer size to be 1 kilobyte.