Add callback when files are generate