Tinkering with portrait code