Extremely naive, but works