removing exit(); function.