It think it would be easier to read if lines 80,81 are moved beneath 77, keeping the two cases by which origins_str is instantiated together.