Gagh! almost got the functionality on portfolio working.