Added portal related changes to Metamer