Ugly but works.
.
.