Added a simple unit test
Improved queue handling. Added variable tcdStatus