Increased buffer size to 1048576