(init) Copied from middleware-seed.