Implement loadUntil.