Consider replacing < with <= here:
