Fixed mistyped variable name and added percentage to line output.