Added algorithm and helper methods for const coverage