Finish adding the rest of the bagels code.