Have you seen @PetrKryslUCSD’s post here?
(Also look at the following comments that include an updated version).