Changes to list insertion to be ordered correctly (Help from Jaco)