Changed buffer to 1MB