Minor comment typo on 'needed'.  I know this is a monkey patch, but I assume 1024 is a "big enough" buffer?