Added quit() function.