As shown.

Fully tested & working.