Fixed USING PERIODIC COMMIT and WITH HEADERS