Added HasNext for qea