More implementation for the SAT algorithm.