Quit function added