Add portal functions.