Add linkedAttributes variable into ctx