Implemented CaChloride Algorithm