Restored the stackExpose method and the addRelation method