Added two useful helper structs.