Added coucal_calc_hashes()