More updates to portfolio code.