Fixed a bug that was crashing HMC, and switched to using a uniform length for each polyline (it looks better, I think).