Extracted startup script into seperate scripts.