Rewrite of script and init function specification