Added compatibility for Portfolios plugin.