Added the actual fetch and set loops.  This should be functional code.