Corrected code and comment to match intention.