Started creating source structures for easy access by the rest of the sort code