Added exit and printing \n