Added teh ability to write sparse candidate files