Change buffer size to 65535; Format documents