Add expression to get logic XY
Change create instance function