Added portfolio backend core function