Working on more robust init scripts