Making start/stop scripts generic