The filling should be cooked just until it starts to thicken and bubble slightly. It will continue to set as it cools, so avoid overcooking it, which could make it rubbery or too firm.