Profile date is now type safe. Semi working, not complete yet.