David Lynch:
	- Add some protection from an endless while loop when sorting
	- Abort if a move takes too long. TODO: requeue.
