Improved startup script.