Works now. Needs reference table.