Added exit-Function