Allow custom fileHandler callback