Added .quit command and removed deprecated function call.