Initial script plus some halfworking generation