Added the short algorithm.