ENH: Add hmfc calculation