Finished Laskowski's algorithm.