Made it create the measures dynamically, and also have a start/end constraint on the scrolling. Code is getting horribly messy, will need to do serious cleanup pretty soon here.