[#43246999] Fixed bug where loadqueue wasn't always getting processed.

This contains a lot of changes that are also in #18 since that one hasn't been taken in yet. Perhaps that should be taken before this one.