Add task priority.
Add run queue that takes into account task priority.
Fix a typo.