Improved startup script.
Merge branch 'test' into dev