Updated to remove a compiler warning about the unused 'line' variable.