Adapted from Phil Clark's version - https://caltopo.com/m/S4EQ.