Get rid of internal library stuff linked to the utilities. Also rename 'count' param to 'length' clarifying handling of the parameter internally.