Decided to make the segments a hash rather than an array