Added Quit functionality