Simplified the solution.

- Queue state switching
- WPF action handling.