I'll leave this as is for now; the nested struct looks weird and isn't used anywhere else at the moment.