Generalized init script