It works. Needs testing/review.
Updated README