First working version.
Credit where credit's due.