Added wedge code.