Set up the first part of the while loop.