Create rebuild script