Add saner treatment of the fragments setting. Remove some debugging crap.