Bigupdate.  Added all sections (not just recentlyAdded), added more logging and exception catching