This helped today. https://gist.github.com/benkeen/339af429dbac2c026c3d