Better rewrite, file data callback