Initial conversion to be backed by SQL.