Script init rewrite