Changed a variable name currentEARCommand to currentEARLine (& other
similarly named) to be more descriptive of what it is.