Switched from properties to methods so structs can be used in enumerators.