Improved init script.