Improvements of start and stop scripts