Add Hodge structure functionality