Just changed some variable names to match the javadoc.