Adding portal functionality