Rename getEndData to getVal.