Working startup/shutdown scripts