For anybody else that stumbles onto this old topic, a simpler solution has been discovered and posted here: