Adding a semi-working "solution" for issue #3.