Changes to sorting and seeds and errors