Smarter init script.