Added credit in code to David Hechler (who is awesome)