Updated startup and shutdown scripts