Adding startup and shutdown scripts